import request from '@/utils/request';
export async function queryQuestionList(payload) {
  return request( '/api/user_question',
    {
      method: "GET",
      params:payload
    } );
}
export async function queryDetail (payload) {
    return request(`/api/user_question_detail?id=${payload.id}`)
}
// 删除帖子
export async function deleteQuestion(payload) {
  return request(`/api/user_question_detail`, {
    method: 'DELETE',
    data: payload,
  } );}
// 删除评论
export async function deleteQuestionComment ( payload ) {
    return request( `/api/question_comment`, {
      method: 'DELETE',
      data: payload,
    } );
  }

